<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<link rel="stylesheet" type="text/css" href="pages/basic/css/packregmng.css" />

<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<ul class="breadcrumb">
				<li><span class="c-999">基础信息管理</span> <i
					class="icon-angle-right"></i>
				</li>
				<li>
					<a class="c-999" onclick="util.showContent('pages/basic/packRegMng.jsp')">电池注册管理</a>
					<i class="icon-angle-right"></i>
				</li>
				<li><span class="c-666">更换采集终端</span></li>
			</ul>
		</div>
	</div>
	<div class="contant">
		<div class="battery-info-box bd-green">
			<input id="pkId" type="hidden" />
			<p class="battery-info-ID c-666 c-bold">
				采集终端ID：<span id="form_colClientId" class="c-green"></span>
			</p>
			<p class="battery-info-ID c-666 c-bold">
				电池ID：<span class="c-green"></span>
			</p>
			<input id="form_pack_code" type="text">
			<p class="battery-info-ID c-666 c-bold">
				电池系统型号：<span class="c-green"></span>
			</p>
			<input type="text" id="form_pack_model" readonly="readonly" />
			<p class="battery-info-ID c-666 c-bold">
				手机号：<span class="c-green"></span>
			</p>
			<input type="text" id="form_sim_phoneno" readonly="readonly" />
			<p class="battery-info-ID c-666 c-bold">客户名称：</p>
			<input id="form_customId" type="hidden"/>
			<textarea id="form_cusName" class="form-control" rows="3" readonly="readonly"></textarea>
			<button class="btn green" id="register">确认并打印</button>
			<button id="print_btn" type="button" class="hide" href="#dayin" data-toggle="modal"></button>
		</div>
		<div class="terminal-info-box" id="regInfoDiv">
			<div class="table-con" style="margin-bottom: 25px;">
				<div class="table-head">
					&nbsp;&nbsp;&nbsp;<i class="icon-reorder"></i>&nbsp;电池基本信息
				</div>
				<div class="table-responsive">
					<table class="table table-bordered acquisition-terminal" id="colInfoTable"
					style="margin: 0;">
						<tr>
							<td><label><span class="c-bold">采集终端ID：</span><span
									id="info_colClientId"></span> </label></td>
							<td><label><span class="c-bold">IMSI：</span><span
									id="info_imsi"></span> </label></td>
						</tr>
						<tr>
							<td><label><span class="c-bold">网络模式：</span><span
									id="info_networkStandard"></span> </label>
							</td>
							<td><label><span class="c-bold">通信运营商：</span><span
									id="info_simIccid"></span> </label>
							</td>
						</tr>
						<tr>
							<td><label><span class="c-bold">GPS信号强度：</span><span
									id="info_gpsSig"></span> </label>
							</td>
							<td><label><span class="c-bold">GPRS信号强度：</span><span
									id="info_gprsSig"></span> </label>
							</td>
						</tr>
						<tr>
							<td><label><span class="c-bold">GPS正在使用的卫星数量：</span><span
									id="info_gpsNum"></span> </label></td>
							<td></td>
						</tr>
					</table>
				</div>
			</div>
			<!--电池基本信息 end-->

			<!--电池实时信息 str-->
			<div class="table-con bd-blue" style="min-height: 466px;">
				<div class="table-head bg-blue">
					&nbsp;&nbsp;&nbsp;<i class="icon-reorder"></i>&nbsp;电池实时信息
				</div>
				<!--table str-->
				<div class="table-responsive table-responsive-in">
					<table class="table table-bordered acquisition-terminal" id="currentInfoTable"
						style="margin: 0;">
						<tr>
							<td><label><span class="c-bold">采集时间：</span><span
									id="info_gatherTime"></span> </label>
							</td>
							<td><label><span class="c-bold">电池SOC：</span><span
									id="info_soc"></span> </label>
							</td>
						</tr>
						<tr>
							<td><label><span class="c-bold">总电压：</span><span
									id="info_elVol"></span> </label></td>
							<td><label><span class="c-bold">总电流：</span><span
									id="info_elCurrent"></span> </label></td>
						</tr>
						<tr>
							<td><label><span class="c-bold">单体最低电压：</span><span
									id="info_minVolVal"></span> </label></td>
							<td><label><span class="c-bold">监测点最低温度：</span><span
									id="info_minTempVal"></span> </label></td>
						</tr>
						<tr>
							<td><label><span class="c-bold">单体最高电压：</span><span
									id="info_maxVolVal"></span> </label></td>
							<td><label><span class="c-bold">监测点最高温度：</span><span
									id="info_maxTempVal"></span> </label></td>
						</tr>
					</table>
					<!--实时信息list-->
					<ul id="real_time_info" class="battery-real-time-info-list">
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="/pages/common/modal.jsp"></jsp:include>
<div id="dayin" class="modal hide fade bd-green dayin" tabindex="-1"
	data-focus-on="input:first">
	<div class="modal-header al-right">
		<button type="button" class="close bg-green" data-dismiss="modal" id="print_close"
			aria-hidden="true"></button>
	</div>
	<div class="modal-body" id="print_area">
		<table class="table table-bordered">
			<tr>
				<td class="printTd">采集终端ID：</td>
				<td id="print_colClientId"></td>
			</tr>
			<tr>
				<td class="printTd">电池ID：</td>
				<td id="print_packNum"></td>
			</tr>
			<tr>
				<td class="printTd">客户名称：</td>
				<td id="print_cusName"></td>
			</tr>
		</table>
	</div>
	<div class="modal-footer al-center">
		<button type="button" data-dismiss="modal" class="btn green" id="print_confirm">确认打印</button>
	</div>
</div>

<script type="text/javascript" src="pages/basic/js/packRegChangeClient.js"></script>
<script type="text/javascript" src="script/address/js/address.js"></script>
<script type="text/javascript" src="script/jquery/js/jquery.jqprint-0.3.js"></script>
<script type="text/javascript" src="script/jquery/js/jquery.cityselect.js"></script>
<script src="media/js/ui-modals.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function() {
		$("#sjld").sjld("#province","#city","#area");
		var colClientId = '<%=request.getParameter("colClientId")%>';
		var pkId = '<%=request.getParameter("pkId")%>';
		packInfoTable.init(pkId, colClientId);
	});
</script>
